/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.page-header h2 i {
    margin-right: 10px;
    color: #3498db;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 220px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    padding: 0 15px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-box button {
    height: 38px;
    width: 45px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #2980b9;
}

/* 文章列表容器 */
.blog-list {
    min-height: 200px;
}

/* 文章卡片 */
.blog {
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    border-radius: 4px 0 0 4px;
}

/* 文章头部 */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.blog .title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    flex: 1;
    margin: 0;
    padding: 0 0 0 10px;
}

.blog .date {
    font-size: 0.85rem;
    color: #7f8c8d;
    padding: 5px 10px;
    background: rgba(236, 240, 241, 0.5);
    border-radius: 20px;
}

.blog .date i {
    margin-right: 5px;
}

/* 文章内容 */
.blog .desc {
    text-indent: 2em;
    line-height: 1.7;
    color: #34495e;
    margin: 20px 0;
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.blog .desc::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
}

/* 文章底部 */
.blog-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.blog .detail {
    display: inline-block;
    padding: 8px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.blog .detail:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.blog .detail i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.blog .detail:hover i {
    transform: translateX(3px);
}

/* 统计信息 */
.stats {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 状态消息 */
.no-blogs, .error-message {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.no-blogs i, .error-message i {
    display: block;
    margin: 0 auto 15px;
    font-size: 2rem;
}

.no-blogs i {
    color: #7f8c8d;
}

.error-message i {
    color: #e74c3c;
}

.error-message {
    color: #e74c3c;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h2 {
        margin-bottom: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: calc(100% - 45px);
    }
    
    .blog .title {
        margin-bottom: 10px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
